public class A {

    static {
        System.out.println("A-static");
    }

    public A() {
        System.out.println("A-construct");
    }

    static class D {
        static {
            System.out.println("D-static");
        }

        static A a = new A();

        public static A getV(){
            return a;
        }
    }

    public static void main(String[] args) {
        A.D.getV();
    }

}
